#include"tcp_server.hpp"
void Usage(const std::string &s)
{
    std::cout << "warning: illegal usage!" << std::endl;
    std::cout << "please input as this: " << s.c_str() << " server_port" << std::endl;
}
int main(int argc, char* argv[])
{
    if(argc!=2)
    {
        Usage(argv[0]);
        return 1;
    }
    uint16_t port = std::stoi(argv[1]);

    TcpServer ts(port);
    ts.Init();
    ts.Start();

}
